
// const CustomKoa = require("./custom/app")
// const middlewares = require("./middlewares")
// const { resolve } = require("path")
// const context = require("./extend/context")
// const app = new CustomKoa();


// app.useMiddlewares(middlewares)
// app.useRouters(resolve(__dirname, "./routers"))
// app.extendContext(context)
// app.useLogger(resolve(__dirname, "../logs"))

// module.exports = { server: app }
const CustomKoa = require("./custom/app")
const middlewares = require("./middlewares")
const { resolve } = require("path")
const context = require("./extend/context")
const app = new CustomKoa();

app.useMiddlewares(middlewares)
app.useRouters(resolve(__dirname, './routers'))
app.extendContext(context)
app.useLogger(resolve(__dirname, "../logs"))

module.exports = { server: app }